﻿using System;
using System.Data;
using System.Collections.Generic;

using System.Text;

namespace TimKen.BussLogic
{
    /// <summary>
    /// 
    /// </summary>
    public class AdminActionManager
    {
        private readonly TimKen.DataAccess.AdminActionDAO  dal = new TimKen.DataAccess.AdminActionDAO();
        public AdminActionManager()
		{}
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ActionID)
		{
			return dal.Exists(ActionID);
		}

		/// <summary>
		/// 增加一条数据
		/// </summary>
		public int  Add(TimKen.DataEntity.AdminAction model)
		{
			return dal.Add(model);
		}

		/// <summary>
		/// 更新一条数据
		/// </summary>
		public void Update(TimKen.DataEntity.AdminAction model)
		{
			dal.Update(model);
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public void Delete(int ActionID)
		{
			
			dal.Delete(ActionID);
		}

		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public TimKen.DataEntity.AdminAction GetModel(int ActionID)
		{
			
			return dal.GetModel(ActionID);
		}

		 
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			return dal.GetList(strWhere);
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetAllList()
		{
			return GetList("");
		}

	 

		#endregion  成员方法
    }
}
